package com.sj.common.dto.auth;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2022-03-11
 * Time: 下午 15:04
 * Description: 发送验证码参数
 *
 * @author xiaoqi
 * @since 2022-03-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("发送验证码参数")
public class SendCodeParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

}